<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org">

<body>

<div th:fragment="navTwo" class="tree-panel tree-column">
    <div class="layui-container">
        <ul class="layui-clear">
            <li class="layui-this"><a href="/">首页</a></li>
            <li class="type1"><a th:href="@{/(type='1')}">情感交流</a></li>
            <li class="type2"><a th:href="@{/(type='2')}">生活分享<!--span class="layui-badge-dot"></span--></a></li>
            <li class="type3"><a th:href="@{/(type='3')}">互帮互助</a></li>
            <li class="type4"><a th:href="@{/(type='4')}">学习讨论</a></li>
            <li class="type7"><a th:href="@{/(type='7')}">公告</a></li>
            <li class="type5"><a th:href="@{/(type='5')}">好友动态</a></li>
            <li class="type6"><a th:href="@{/(type='6')}">二手交易</a></li>
            <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><span class="tree-mid"></span></li>
            <!-- 用户登录后显示 -->
            <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block" th:if="${session.user!=null}">
                <a href="/user/profile/questions">我发表的贴</a>
            </li>
            <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block" th:if="${session.user!=null}">
                <a href="/user/profile/bookMark">我收藏的贴</a>
            </li>
            <input type="text" th:value="${type}" class="nav-type layui-hide">
        </ul>
        <div class="tree-column-right layui-hide-xs">
            <span class="tree-search" onclick="search()"><i class="layui-icon layui-icon-search"></i></span>
            <a href="/publish" class="layui-btn">发表新帖</a>
        </div>
        <div class="layui-hide-sm layui-show-xs-block" style="margin-top: -10px; padding-bottom: 10px; text-align: center;">
            <a href="/publish" class="layui-btn">发表新帖</a>
        </div>
    </div>
</div>
</body>
</html>
